﻿
using System.Data.Entity.ModelConfiguration;
using BeautyTech.Core.Domain.Catalogs;

namespace BeautyTech.Data.Configuration.Catalogs
{
    public class CategoryConfiguration : EntityTypeConfiguration<Category>
    {
        public CategoryConfiguration()
        {
            this.Property(p => p.Name).HasMaxLength(65).IsRequired();
            this.Property(p => p.SeName).HasMaxLength(65).IsRequired();
        }
    }
}
